//
//  DHLoctionManager.m
//  精品酒店
//
//  Created by DIANGHONG on 2018/5/12.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import "DHLoctionManager.h"

@implementation DHLoctionManager

+ (instancetype)shareManager
{
    static id instance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        if ([CLLocationManager locationServicesEnabled])
        instance = [[CLLocationManager alloc]init];
    });
    return instance;
}

-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{
    NSLog(@"......");
}
@end
